package com.ruoyi.business.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.TaskUserTrajectory;
import com.ruoyi.business.request.ApiTrajectoryCreateReq;
import com.ruoyi.business.request.ApiTrajectoryQueryReq;
import com.ruoyi.business.response.ApiTrajectoryRes;
import com.ruoyi.common.core.domain.PageResult;

/**
 * 调研人员轨迹Service接口
 * s
 * @author Eric
 * @date 2024-03-20
 */
public interface ITaskUserTrajectoryService extends IService<TaskUserTrajectory> {

    Boolean create(ApiTrajectoryCreateReq req);

    Boolean sync(Long researchPlanId);

    List<List<BigDecimal>> getTrajectoryList(Long researchPlanId, Integer version);
    Map<String, List<List<BigDecimal>>> getTrajectoryListAdmin(Long researchPlanId, Long userId, Integer version);
    Map<Integer,List<TaskUserTrajectory>> getTrajectoryListMap(Long researchPlanId);

    PageResult<ApiTrajectoryRes> pageTrajectory(ApiTrajectoryQueryReq req);

}
